package com.hongyu.smart.village.ui.adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.hongyu.smart.village.R;
import com.hongyu.smart.village.model.HomeMenu;
import com.hongyu.smart.village.ui.base.BaseAdapter;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;

public class BlueToothDeviceAdapter  extends BaseAdapter<String, BlueToothDeviceAdapter.ViewHolder> {

        public BlueToothDeviceAdapter(Context mContext, List<String> mList) {
            super(mContext, mList);
}

        @Override
        protected ViewHolder getViewHolder(View itemView) {
            return new ViewHolder(itemView);
        }

        @Override
        public int getItemView() {
            return R.layout.item_bluetooth_devicer;
        }


        @Override
        public void onBindHolder(ViewHolder holder, int position) {
            String bean = mList.get(position);
            holder.tvName.setText(bean);

        }


static class ViewHolder extends RecyclerView.ViewHolder {

    @BindView(R.id.tv_name)
    TextView tvName;


    public ViewHolder(@NonNull View itemView) {
        super(itemView);
        ButterKnife.bind(this, itemView);
    }
}
}